package com.lagou.cloud.gateway.dao;

import com.lagou.cloud.gateway.pojo.Request;
import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;

public interface RequestDAO extends JpaRepository<Request, Long> {
    Long countByIpAndPathAndCreateTimeGreaterThanEqual(String ip, String path, Timestamp limitDuration);
}
